/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class CurtainRemoteController {
    static categoryCode = '010040037';

    static categoryName = '窗帘遥控器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return CurtainRemoteController.categoryCode;
    }

    get categoryName() {
        return CurtainRemoteController.categoryName;
    }

    getAdjustDirection(params) {
        return command({
            method: 'getAdjustDirection',
            methodId: 'p1vFcJxo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetPosition(params) {
        return command({
            method: 'getTargetPosition',
            methodId: 'pGoxsTR1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAdjustDirection(params) {
        return command({
            method: 'setAdjustDirection',
            methodId: 'pZgR0Nnk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pUPQ5SPq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'peH3AZJx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetPosition(params) {
        return command({
            method: 'setTargetPosition',
            methodId: 'ppAXwLyb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default CurtainRemoteController;
